<div class="players_detail">
	<div class="container">
        <?php if(!isset($spelers)){ echo "Speler niet gevonden";} else {foreach($spelers as $speler) { ?>
		<div class="row">
			<div class="col-lg-2 col-md-2 col-sm-12 col-xs-12 player_info">
				<div class="name_box">
					<span class="number"><?php echo $speler->Nummer ?></span>
					<span class="firstname"><?php echo $speler->Voornaam ?></span>
					<span class="surname"><?php echo $speler->Naam ?></span>
					<span class="position"><?php echo $speler->Positie ?></span>
				</div>

				<div class="logo">
				</div>		
			</div>

			<div class="col-lg-5 col-md-5 col-sm-6 col-xs-12 player_picture">
				<div class="image_box">
					<img src="<?php echo base_url(); ?>images/players/<?php echo $speler->Id ?>.image" title="<?php echo $speler->Naam." ".$speler->Voornaam ?>" alt="<?php echo $speler->Naam." ".$speler->Voornaam ?>">
				</div>
			</div>

			<div class="col-lg-5 col-md-5 col-sm-6 col-xs-12 player_meta">
				<div class="stats_box">

					<p class="line">
						<span class="line_label">Naam:</span> 
						<span class="line_value"><?php echo $speler->Voornaam." ".$speler->Naam ?></span>
					</P>

					<p class="line">
						<span class="line_label">Leeftijd:</span> 
						<span class="line_value"><?php echo date_diff(date_create($speler->Geboortedatum), date_create('now'))->y ?></span>
					</P>

					<p class="line">
						<span class="line_label">Geboortedatum:</span> 
                                                <span class="line_value"><?php echo  date_create($speler->Geboortedatum)->format('d-m-Y'); ?> </span>
					</P>

					<p class="line">
						<span class="line_label">Lengte:</span> 
						<span class="line_value"><?php echo $speler->Lengte.'cm' ?></span>
					</P>

					<p class="line">
						<span class="line_label">Gewicht:</span> 
						<span class="line_value"><?php echo $speler->Gewicht.'kg' ?></span>
					</P>

					<p class="line">
						<span class="line_label">Doelpunten:</span> 
						<span class="line_value">40</span>
					</P>


					<p class="line">
						<span class="line_label">Assists:</span> 
						<span class="line_value">40</span>
					</P>

					<p class="line">
						<span class="line_label">Rode kaarten:</span> 
						<span class="line_value">40</span>
					</P>

					<p class="line">
						<span class="line_label">Gele kaarten:</span> 
						<span class="line_value">40</span>
					</P>
				</div>	
			</div>
		</div>
	 	<?php }} ?>	
	</div>	
</div>